package Book;

public class BookList {
    private int BooksNum;//图书种类数
    private static final int BOOKSNUM = 10;
    private Book[] book = new Book[BOOKSNUM];

    public BookList()
    {
        book[0]=new Book("1001","三国演义","罗贯中",89,"名著出版社");
        book[1]=new Book("1002","斗破苍穹","天蚕土豆",10,"玄幻出版社");
        book[2]=new Book("1003","高等数学上","同济大学",45,"教科书出版社");
        this.BooksNum=3;
    }

    public int getBooksNum() {
        return BooksNum;
    }

    public void setBooksNum(int booksNum) {
        BooksNum = booksNum;
    }

    public Book getBook(int x) {
        return book[x];
    }

    public void setBook(Book book,int pos) {
        this.book[pos] = book;
    }

}